package shellstation;

import javax.swing.*;
import java.awt.*;
import javax.swing.JFrame;


public class InventoryReportView {

    private    JTable fullmeterTable;
    private    String[] fullmeterCol = {" ","Closing Reading","Opening Reading","Sales", "Selling Price", "Selling Amount"};
    private    Object[][] fullmeterRow = {
			{ "ULG1"," "," "," "," "," "},
                        {"ULG2"," "," "," "," "," "},
                        {"SUPER"," "," "," "," "," "},
                        {"DIESEL1"," "," "," "," "," "},
                        {"DIESEL2"," "," "," "," "," "},
                        {"DIESEL3"," "," "," "," "," "},
                        {"DIESEL4"," "," "," "," "," "},
                        {"RM1"," "," "," "," "," "},
                        {"RM2"," "," "," "," "," "},
        		};
    private    JTable storageTable;
    private    String[] storageCol = {" ","Opening Inventory", "Receipts","Total","Closing Inventory", "Sales by Stock","Meter Over/Short"};
    private    Object[][] storageRow = {
                        {"ULG1"," "," "," "," "," "," "},
                        {"ULG2"," "," "," "," "," "," "},
                        {"SUPER"," "," "," "," "," "," "},
                        {"DIESEL1"," "," "," "," "," "," "},
                        {"DIESEL2"," "," "," "," "," "," "},
                        {"KEROSENE"," "," "," "," "," "," "},
                        {"REGULAR"," "," "," "," "," "," "},
        		};
    private    JTable shellProductTable;
    private    String[] shellpCol = {" ","Opening Inventory", "Receipts","Adjustments", "Total","Closing Inventory","Sales", "Price", "Sales Amount"};
    private    Object[][] shellpRow = {
			{"2T 100ML"," "," "," "," "," "," "," "," "},
                        {"2T L"," "," "," "," "," "," "," "," "},
                        {"X100 30L"," "," "," "," "," "," "," "," "},
                        {"X100 40L"," "," "," "," "," "," "," "," "},
                        {"X100 30GAL"," "," "," "," "," "," "," "," "},
                        {"X100 40 GAL"," "," "," "," "," "," "," "," "},
                        {"X100 10PAIL"," "," "," "," "," "," "," "," "},
                        {"X100 30 PAIL"," "," "," "," "," "," "," "," "},
                        {"HELIX SUPER LITER"," "," "," "," "," "," "," "," "},
  			{"HELIX SUPER GALLON"," "," "," "," "," "," "," "," "},
                        {"HELIX RED LITER"," "," "," "," "," "," "," "," "},
                        {"HELIX BLUE GALLON"," "," "," "," "," "," "," "," "},
                        {"ADVANCE VSK LITER"," "," "," "," "," "," "," "," "},
                        {"ADVANCE S/4 LITER"," "," "," "," "," "," "," "," "},
                        {"RIMULA 30L"," "," "," "," "," "," "," "," "},
                        {"RIMULA 40L"," "," "," "," "," "," "," "," "},
                        {"RIMULA 40GAL"," "," "," "," "," "," "," "," "},
                        {"RIMULA 40PAIL"," "," "," "," "," "," "," "," "},
                        {"REMULA C LITER"," "," "," "," "," "," "," "," "},
                        {"REMULA C GALLON"," "," "," "," "," "," "," "," "},
                        {"REMULA C PAIL"," "," "," "," "," "," "," "," "},
                        {"REMULA X LITER"," "," "," "," "," "," "," "," "},
                        {"REMULA X GALLON"," "," "," "," "," "," "," "," "},
                        {"REMULA X PAIL"," "," "," "," "," "," "," "," "},
                        {"SPIRAX 90 LITER"," "," "," "," "," "," "," "," "},
                        {"SPIRAX 90 GALLON"," "," "," "," "," "," "," "," "},
                        {"SPIRAX 140 LITER"," "," "," "," "," "," "," "," "},
                        {"SPIRAX #160 PAIL"," "," "," "," "," "," "," "," "},
                        {"RETINAX HD3 10GMS"," "," "," "," "," "," "," "," "},
                        {"RETINAX HD3 0.5KG"," "," "," "," "," "," "," "," "},
                        {"RETINAX HD3 2.0KG"," "," "," "," "," "," "," "," "},
                        {"RETINAX EP2 0.5KG"," "," "," "," "," "," "," "," "},
                        {"RETINAX EP2 2.0KG"," "," "," "," "," "," "," "," "},
                     	{"RUSTGUARD GALLON"," "," "," "," "," "," "," "," "},
                        {"D.WATER LITER"," "," "," "," "," "," "," "," "},
                        {"B.SOLUTION LITER"," "," "," "," "," "," "," "," "},
                        {"BREAK FLUID 300ML"," "," "," "," "," "," "," "," "},
                        {"BREAK FLUID 500ML"," "," "," "," "," "," "," "," "},
                        {"BREAK FLUID LITER"," "," "," "," "," "," "," "," "},
                        {"PINETREE"," "," "," "," "," "," "," "," "},
                        {"DONAX LITER"," "," "," "," "," "," "," "," "},
                        {"COOLGUARD LITER"," "," "," "," "," "," "," "," "},
                        {"ADV/VSX ESPOL LITER"," "," "," "," "," "," "," "," "},
        		};

    private   JFrame frame;
    private   JPanel panel;

        public void InventoryReportView() {

                frame = new JFrame("Inventory Report");
                frame.setSize(1000,650);
                frame.setVisible(true);
		        frame.setResizable(false);

		fullmeterTable = new JTable(fullmeterRow, fullmeterCol){
                    public boolean isCellEditable(int fullmeterRow, int fullmeterCol){
                        return false;
                        }};
		fullmeterTable.setPreferredScrollableViewportSize(new Dimension(700,100));
		fullmeterTable.setFillsViewportHeight(true);

		JScrollPane scrollPane1 = new JScrollPane(fullmeterTable);


                storageTable = new JTable(storageRow, storageCol){
                    public boolean isCellEditable(int storageRow, int storageCol){
                        return false;
                        }};
                storageTable.setPreferredScrollableViewportSize(new Dimension(700,100));
                storageTable.setFillsViewportHeight(true);

                JScrollPane scrollPane2 = new JScrollPane(storageTable);

                shellProductTable = new JTable(shellpRow, shellpCol){
                    public boolean isCellEditable(int shellpRow, int shellpCol){
                        return false;
                        }};
                shellProductTable.setPreferredScrollableViewportSize(new Dimension(900,300));
                shellProductTable.setFillsViewportHeight(true);

                JScrollPane scrollPane3 = new JScrollPane(shellProductTable);

                panel = new JPanel();
                 panel.add(scrollPane1);
                panel.add(scrollPane2);
                panel.add(scrollPane3);

                frame.add(panel);
	}

}
